local buhuijueqing = fk.CreateSkill{
    name = "rmt__buhuijueqing",
}
Fk:loadTranslationTable{
    ["rmt__buhuijueqing"] = "不会绝情",
    [":rmt__buhuijueqing"] = "你造成伤害时，可以失去1点体力，令你与受伤角色体力值较少者摸一张牌。",
    ["#rmt__buhuijueqing"] = "是否发动 不会绝情，失去1点体力，令你与 %dest 体力值较少者摸一张牌",
}

buhuijueqing:addEffect(fk.DamageCaused, {
    can_trigger = function (self, event, target, player, data)
        return player:hasSkill(buhuijueqing.name) and target == player
    end,
    on_cost = function (self, event, target, player, data)
        if player.room:askToSkillInvoke(player,{
            skill_name = buhuijueqing.name,
            prompt = "#rmt__buhuijueqing::"..data.to.id,
        }) then
            return true
        end
    end,
    on_use = function (self, event, target, player, data)
        local room = player.room
        room:loseHp(player, 1, buhuijueqing.name)
        if player.hp > data.to.hp then
            data.to:drawCards(1,buhuijueqing.name)
        elseif data.to.hp > player.hp then
            player:drawCards(1,buhuijueqing.name)
        else
            player:drawCards(1,buhuijueqing.name)
            data.to:drawCards(1,buhuijueqing.name)
        end
    end,
})

return buhuijueqing